KERNEL_DIR=/a31dk/jb-4.2.2-a31
CROSS_COMPILE=/a31dk/toolchains/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-

INC6221=/a31dk/jb-4.2.2-a31/arch/arm/mach-sun6i/include
export INCLUDE=/a31dk/jb-4.2.2-a31/arch/arm/mach-sun6i/include

obj-m := zet622x.o 
PWD := $(shell pwd)

default:
	#export
	$(MAKE) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) -I$(INC6221) -C $(KERNEL_DIR) SUBDIRS=$(PWD) EXTRA_CFLAGS=-fno-pic modules
	#echo $(ARCH)

clean:
	$(MAKE) -C $(KERNL_DIR) SUBDIRS=$(PWD) clean